-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: simplify blockexplorer link #638
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
e6d39fc
to
bb85824
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bb85824
to
3260e30
Compare
3d69338
to
4b40554
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<BlockExplorer | ||
asset={ | ||
swap().claimTx ? swap().assetReceive : swap().assetSend | ||
} | ||
txId={swap().claimTx || swap().lockupTx} | ||
address={ | ||
swap().claimAddress || (swap() as SubmarineSwap).address | ||
} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes no sense either. Why would we ever want to show assetReceive
after we broadcasted a claim?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my thinking was, when doing a reverse or chainswap and i successfully receive lbtc i want to open that claimTx on the success page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, I meant assetSend
. Showing the send one makes no sense
src/status/TransactionMempool.tsx
Outdated
<BlockExplorer | ||
asset={swap().assetSend} | ||
txId={swapStatusTransaction()?.id} | ||
typeLabel="lockup_tx" | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we showing this in transaction.mempool
but not for transaction.confirmed
or invoice.pending
?
0c3faee
to
bbfe6d5
Compare
bbfe6d5
to
c135555
Compare
working on integration a blockexplorer setting i found it very difficult to understand the BlockExplorerLink component, i would suggest of removing the general one on the `Pay` page and put it explicitly into each relevant swap status page. this removed the needs of the `BlockExplorerLink` component it can be tested for each status page
c135555
to
d2e13d1
Compare
working on integration a blockexplorer setting i found it very difficult to understand the BlockExplorerLink component, i would suggest of removing the general one on the
Pay
page and put it explicitly into each relevant swap status page. this removed the needs of theBlockExplorerLink
componentit can be tested for each status page